<script setup>
	import {onLaunch} from "@dcloudio/uni-app"
	// let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
	onLaunch(()=>{
		// console.log("123")
		// 获取手机小程序右上角的胶囊按钮
		let menuButtonInfo = uni.getStorageSync("MenuButton")   // get ==> 读取
		// console.log(menuButtonInfo)
		// 判断，检查用户缓存
		if(!menuButtonInfo){
			const menuButtonInfo = uni.getMenuButtonBoundingClientRect()   
			uni.setStorageSync('MenuButton',menuButtonInfo)    // set ==> 写入
		}
	})
</script>

<style>
	/*每个页面公共css */
</style>
